package com.xmxsuperstar.app;

public class CommonConstants {

	public static final String CHAR_ENCODING = "UTF-8";
	public static final String CRLF = "\r\n";

	public static final class HTTP_METHOD_NAMES {
		public static final String GET = "GET";
		public static final String POST = "POST";
		public static final String PUT = "PUT";
		public static final String DELETE = "DELETE";
	}

	public static enum HTTP_METHODS_ENUM {
		GET(HTTP_METHOD_NAMES.GET, 1),

		POST(HTTP_METHOD_NAMES.POST, 2),

		PUT(HTTP_METHOD_NAMES.PUT, 3),

		DELETE(HTTP_METHOD_NAMES.DELETE, 4);

		HTTP_METHODS_ENUM(String methodName, int code) {
			this.methodName = methodName;
			this.code = code;
		}

		private String methodName;

		private int code;

		public String getMethodName() {
			return methodName;
		}

		public void setMethodName(String methodName) {
			this.methodName = methodName;
		}

		public int getCode() {
			return code;
		}

		public void setCode(int code) {
			this.code = code;
		}

	}

	public static final class HTTP_PROTOCLS {
		public static final String HTTP = "http";
		public static final String HTTPS = "https";
	}

	public static final String HTTP_VERSION = "HTTP/1.1";

}
